package com.neusoft.neuiotms.dcam.fixed.repository.spareConsume;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcam.fixed.model.spareconsume.SpareConsumeApply;

public interface SpareConsumeApplyRepository extends JpaRepository<SpareConsumeApply, Long> {

    SpareConsumeApply findByWorkNumAndTaskId(String workNum, String taskId);

    SpareConsumeApply findTopByWorkNumOrderByIdDesc(String workOrderNum);

    List<SpareConsumeApply> findByMalfunction(Long id);
}
